<template>
	<view class="detail-page">
		<view class="detail-item" @click="picker=true">
			<view class="item-title">
				提现币种
			</view>
			<view class="type">
				<text>{{coin}}</text>
				<u-icon name="arrow-right" color="#000000" size="16"></u-icon>
			</view>
		</view>
		<view class="detail-item">
			<view class="item-title">
				提现地址
			</view>
			<view>
				<u--input inputAlign="right" placeholderStyle="textAlign:'right'" placeholder="请输入提现地址" border="none"
					v-model="address"></u--input>
			</view>
		</view>
		<view class="detail-item">
			<view class="item-title">
				提币数量
			</view>
			<view>
				<u--input inputAlign="right" placeholderStyle="textAlign:'right'" placeholder="请输入提币数量" border="none"
					v-model="num"></u--input>
			</view>
		</view>
		<view class="detail-item">
			<view class="item-title">
				实际到账
			</view>
			<view>
				<u--input inputAlign="right" placeholderStyle="textAlign:'right'" placeholder="请输入提币数量" border="none"
					v-model="realityNum"></u--input>
			</view>
		</view>
		<view class="detail-item">
			<view class="item-title">
				资金管理费
			</view>
			<view class="type">
				<text>3.00</text>
			</view>
		</view>
		<view class="detail-item">
			<view class="item-title">
				最小提币数量
			</view>
			<view class="type">
				<text>20.00</text>
			</view>
		</view>
		<view class="detail-item">
			<view class="item-title">
				最大提币数量
			</view>
			<view class="type">
				<text>1000000.00</text>
			</view>
		</view>
		<view class="detail-item">
			<view class="item-title">
				交易密码
			</view>
			<view>
				<u--input inputAlign="right" placeholderStyle="textAlign:'right'" placeholder="请输入交易密码" border="none"
					v-model="password"></u--input>
			</view>
		</view>
		<view class="btn">
			<u-button shape="circle" size="large" color="#333333" type="primary" text="提交"></u-button>
		</view>
		<u-popup round="20" :show="show" mode="center" @close="close">
			<view class="tips">
				<view class="title">
					温馨提示
				</view>
				<view class="text">
					尊敬的客户：
					<br>
					①提款申请平台将收取资金管理费：
					<br>
					本金钱包提款的3%.
					<br>
					收益钱包提款的5%.
					<br>
					②请您提供正确的钱包地址信息,若因提供的钱包地址有误导致损失,我司恕不负责.
					<br>
					③因受链上网络与处理速度因素,提款到账时间有所不同,请您耐心等待.
					<br>
					④为了避免文字理解差异,我司保留最终解释权.
					<br>
					⑤如有任何问题,请联系电邮我司客服,我们将尽快为您提供帮助.
				</view>
				<view class="tips-btn">
					<u-button shape="circle" size="large" color="#333333" type="primary" text="确定"
						@click="close"></u-button>
				</view>
			</view>
		</u-popup>
		<u-picker @confirm="confirm" :show="picker" :columns="columns" @cancel="ispicker"></u-picker>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				coin: 'USDT-TRC20',
				address: '',
				num: '',
				realityNum: '',
				password: '',
				show: true,
				picker: false,
				columns: [
					['USDT-TRC20', 'USDT-ERC20']
				],
			}
		},
		methods: {
			close(e) {
				this.show = false
			},
			ispicker() {
				this.picker = false
			},
			confirm(setIndexs) {
				this.coin = setIndexs.value[0]
				this.picker = false
			}
		}
	}
</script>

<style lang="scss" scoped>
	.detail-page {
		padding: 30rpx;

		.detail-item {
			display: flex;
			justify-content: space-between;
			align-items: center;
			background-color: #f5f6fa;
			padding: 30rpx;
			border-radius: 40rpx;
			font-size: 28rpx;
			margin-top: 30rpx;

			.item-title {
				font-weight: 700;
			}

			.type {
				display: flex;
				align-items: center;

				text {
					margin-right: 10rpx;
				}
			}
		}

		.btn {
			margin-top: 30rpx;
		}

		.tips {
			width: 684rpx;
			padding: 30rpx;

			.title {
				text-align: center;
				font-weight: 600;
				font-size: 30rpx;
			}

			.text {
				color: rgba(51, 51, 51, .6);
				font-size: 30rpx;
				padding: 30rpx 0;
			}

			.tips-btn {
				margin-top: 20rpx;
			}
		}
	}
</style>